//
// Created by zerax on 2020/10/23.
//

#pragma once

#include "game.hh"

#include <glad/glad.h>
#include <memory>
#include <functional>
#include <vertex_array.hh>
#include "texture.hh"
#include "camera.hh"

class MyGame : public Game {
public:
    bool init() override;

protected:
    void update() override;

private:
    VertexArray vao;
    Texture texture;
    Camera cam { glm::vec3(0.0, 2.0, 0.0) };
    glm::mat4 proj;
    int lx = -1, ly = -1;

    bool lockMouse = false;

    float i = 0.0;
    GLuint tex = 0;
};


